<?php
namespace app\api\model;

use app\api\model\Common;
use think\Validate;

class SceenDetail extends Common{
    //
    /**
     *  修改配置项
     */
    public function updateConfig($param, $id)
    {
        $viewData = $this->get(['mid' => $id]);
        if (!$viewData) {
            $this->error = '暂无此数据';
            return false;
        }

        $viewData->config = json_encode($param);
        $viewData->save();
        return true;
    }
}